Interface sjl.AssociativeContainer
All Packages Class Hierarchy This Package Previous Next Index
Interface sjl.AssociativeContainer
- public interface AssociativeContainer
- extends Object
- extends Container
Defines the methods allowed on associative container types.
The supported containers are currently:
Map
, MultiMap
, Set
and
MultiSet
.
Copyright © 1996 Finn Bock
- See Also:
- Map, MultiMap, Set, MultiSet
-
count(Object)
- Return the number of elements with key equal to
key
.
-
equal_range(Object)
- Return iterators i and j such that all elements with keys equal
to
key
are in the range [i,j)
.
-
erase(Iterator, Iterator)
- Erase the elements in the range
[first,last)
.
-
erase(Object)
- Erase the element with a key equal to the object.
-
find(Object)
- Return the iterator pointing to an element with a key equal to
key, or
end()
if such an element is not found.
-
insert(InputIterator, InputIterator)
- Insert copies of
[first, last)
.
insert
public abstract void insert(InputIterator first,
InputIterator last)
- Insert copies of
[first, last)
.
erase
public abstract int erase(Object object)
- Erase the element with a key equal to the object.
erase
public abstract void erase(Iterator first,
Iterator last)
- Erase the elements in the range
[first,last)
.
find
public abstract ForwardIterator find(Object key)
- Return the iterator pointing to an element with a key equal to
key, or
end()
if such an element is not found.
count
public abstract int count(Object key)
- Return the number of elements with key equal to
key
.
equal_range
public abstract Pair equal_range(Object key)
- Return iterators i and j such that all elements with keys equal
to
key
are in the range [i,j)
.
The range is empty if no elements have the key.
All Packages Class Hierarchy This Package Previous Next Index